﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GetTogether.Studio.Logging;

public partial class logging_Components_SoapList : System.Web.UI.UserControl
{
    public SoapLoggings SoapLoggings;
    public string MethodName;
    public string Url;
    public string ServiceName;
    protected void Page_Load(object sender, EventArgs e)
    {
        rptResult.DataSource = SoapLoggings;
        rptResult.DataBind();
        Url = Request["file"];
        if (!string.IsNullOrEmpty(Url))
        {
            string[] urlInfo = Url.Split('/');
            if (urlInfo.Length > 0)
            {
                MethodName = urlInfo[urlInfo.Length - 1];
                MethodName = MethodName.Substring(0, MethodName.IndexOf("."));
                MethodName = MethodName.Substring(0, MethodName.IndexOf("-")).Trim();
            }
            if (urlInfo.Length > 2)
            {
                ServiceName = urlInfo[urlInfo.Length - 2];
            }
        }
    }
}